package com.union.core.doc.dao;

import java.util.List;

import com.union.core.doc.model.DocAttachment;
import com.union.core.doc.model.DocTemplate;
import com.union.core.doc.model.OfficialDoc;
import com.union.core.doc.model.OfficialDocOrg;
import com.union.core.doc.model.SealSignature;
import com.union.core.doc.pojo.OfficialDocOrgPojo;
import com.union.core.doc.pojo.OfficialDocPojo;

public interface OfficialDocDao {
	public int queryCount(OfficialDocPojo officialDocPojo,int creatId);
	
	public List<OfficialDoc> query(OfficialDocPojo officialDocPojo, int start,int pageSize,int creatId);
	
	public int ListCount(int id);
	
	public OfficialDoc query(long id);
	
	public OfficialDoc query(String title);
	
	public boolean add(OfficialDoc officialDoc);
	
	public boolean edit(OfficialDoc officialDoc);
	
	public boolean Success(OfficialDoc officialDoc);
	
	public boolean edit(OfficialDocOrg officialDocOrg);
	
	public Boolean delete(long id);
	
	public boolean checkPid(int id);
	
	public boolean add(OfficialDocOrg officialDocOrg);
	
	public int queryDocOrgCount(OfficialDocOrgPojo officialDocOrgPojo);
	
	public List<OfficialDocOrg> queryDocOrg(OfficialDocOrgPojo officialDocOrgPojo, int start,int pageSize);

	public OfficialDocOrg queryOrg(long lid);
	
	public int queryDocOrgForStatusCount(OfficialDocOrgPojo officialDocOrgPojo);
	
	public List<OfficialDocOrg> queryDocOrgForStatus(OfficialDocOrgPojo officialDocOrgPojo, int start,int pageSize);
	
	public int querySealCount(SealSignature sealSignature);
	
	public List<SealSignature> querySeal(SealSignature sealSignature, int start,int pageSize);

	public SealSignature querySeal(long lid);
	
	public boolean add(SealSignature sealSignature);
	
	public boolean edit(SealSignature sealSignature);
	
	public Boolean deleteSeal(long id);

	public boolean add(List<DocAttachment> daList);
	
	public List<DocAttachment> queryDocAttach(long doc_id);
	
	public DocAttachment queryDAById(long id);
	
	public Boolean deleteDocAttach(long id);
	
	public int queryTemplateCount(DocTemplate docTemplate);
	
	public List<DocTemplate> queryTemplate(DocTemplate docTemplate, int start,int pageSize);

	public DocTemplate queryTemplate(long lid);
	
	public boolean add(DocTemplate docTemplate);
	
	public boolean edit(DocTemplate docTemplate);
	
	public Boolean deleteTemplate(long id);
}
